@import "./style/theme/main-3.23.1.min.css";
/* 覆盖lib库里的筛选组件样式 */
.ud-filter {
  .ant-form {
    .ant-form-item-label {
      //max-width: 110px;
      label {
        display: initial;
        line-height: inherit;
      }
    }
  }
}

.ud-main{
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ud-main-content {
  padding: 0 15px;
  overflow: auto;
  flex: 1;
}
/* 覆盖菜单样式 */
.ud-sidebar {
  background-color:#001529;
  box-shadow: 2px 0 6px rgba(0,21,41,.35);
  ::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 20px #dadada;
  }
  .ud-sidebar-title {
    // background-color: rgba(0, 40, 77, 1);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    height: 64px;
    border-bottom: 0;
  }
  .ud-menu {
    .ant-menu {
      &:not(.ant-menu-horizontal) {
        .ant-menu-item-selected { 
          background-color: #00c1de;
          background-color: var(--primary-color);
          color: #fff;
        }
      }
      &.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title, .ant-menu-sub.ant-menu-inline > .ant-menu-item {
        height: 40px;
        line-height: 40px;
      }
      .ant-menu-item {
        color: hsla(0,0%,100%,.65);
        height: 40px;
        line-height: 40px;
        &:hover {
          background-color: #00c1de;
          background-color: var(--primary-color);
          color: #fff;
        }
      }
      .ant-menu-submenu-title {
        color: hsla(0,0%,100%,.65);
        &:hover {
          background-color: #00c1de;
          background-color: var(--primary-color);
          color: #fff;
        }
      }
      .ant-menu-submenu {
        > .ant-menu {
          background: #000c17;
          box-shadow: inset 0 2px 8px rgba(0,0,0,.45);
          .ant-menu-item {
            color: hsla(0,0%,100%,.65);
            &:hover, &.ant-menu-item-selected {
              color: #fff;
            }
          }
        }
        .ant-menu-submenu-arrow {
          &::before, &::after{
            background-color: hsla(0,0%,100%,.65);
            background-image: none;
          }
        }
      }
    }
  }
}
.ud-table {
  /* 覆盖内嵌表格样式 */
  tr.ant-table-expanded-row td>.ant-table-wrapper {
    margin: -11px -15px;
  }
  &.nowarp-th {
    thead {
      tr {
        th {
          white-space: nowrap;
        }
      }
    }
  }
  table {
    td.ellipsis-td {
      div {
        position: relative;
        height: 38px;
        line-height: 38px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }
  }
}
/* table列金额 统计数值组件 样式 */
table {
  td {
    .ant-statistic, .ant-statistic-content, .ant-statistic-content-value-decimal {
      font-size: inherit;
      color: inherit;
    }
    .red {
      color: red;
    }
  }
}
/* 覆盖TreeSelect搜索框 */
.ant-select-tree-dropdown .ant-select-dropdown-search .ant-select-search__field {
  border-radius: var(--border-radius-base);
}
/* 覆盖详情页tabs样式 */
.detail-page .detail-body .ant-tabs .ant-tabs-content {
  padding: 0;
  border: none;
}
/* 修改下拉框使用搜索icon的样式 */
.ud-search-select.ant-select-open .ant-select-arrow-icon svg {
  transform: none;
}
/* end */
.normal-nowrap {
  white-space: normal !important;
}
/* 详情界面块区域标题样式 */
.ud-detail {
  >.ant-card {
    .ant-card-head {
      background-color: #f5f6fa;
    }
  }
}
/* 页面头部标题 */
.ud-page-header {
  font-size: 14px;
  .ud-page-header-heading-title {
    font-weight: bold;
  }
  .ud-page-header-heading-sub-title {
    .ant-tag {
      margin-top: -4px;
    }
  }
}
/* 详情页label左对齐样式覆盖 */
.left-align-label {
  .item-title {
    width: auto;
    min-width: auto;
  }
}

/* 资金保证金合计样式 */
.moneycount-extra-tips {
  margin-bottom: 10px;
  .num {
    color: red;
    font-weight: bold;
  }
}

.ud-page-toolbar-affix {
  margin-bottom: 12px;
}

/* 滚动table横向滚动条高度 */
.ant-table-scroll {
  .ant-table-body {
    &::-webkit-scrollbar {
      height: 8px;
    }
  }
}

// :root {
//   --body-background: #eee;
// }

/* 菜单展开收缩图标 */
// .ud-sidebar-collapse {
//   display: none;
// }